package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 视频播放记录表 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name = "video_record")
public class VideoRecordInfo extends BaseEntity {
	/*
  `user_id` varchar(64) DEFAULT NULL COMMENT '用户id',
  `video_id` varchar(64) DEFAULT NULL COMMENT '视频id',
  `class_id` varchar(64) DEFAULT NULL COMMENT '视频分类id',
  `start_time` datetime DEFAULT NULL COMMENT '播放开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '播放结束时间',
  `play_time_long` bigint(10) DEFAULT NULL COMMENT '播放时长(秒)',
  `get_state` char(1) DEFAULT '0' COMMENT '是否领取dlb(0否，1是)',
  `get_number` decimal(10,3) DEFAULT NULL COMMENT '领取dlb数量',
	 */
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private String videoId;		// 视频id
	private String classId;		// 视频分类id
	private Date startTime;     // 播放开始时间
	private Date endTime;     	//	播放结束时间
	private Integer playTimeLong;//	播放时长(秒)
	private String getState;		//	是否领取dlb(0否，1是)
	private Double getNumber;		//	领取dlb数量

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getVideoId() {
		return videoId;
	}

	public void setVideoId(String videoId) {
		this.videoId = videoId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getPlayTimeLong() {
		return playTimeLong;
	}

	public void setPlayTimeLong(Integer playTimeLong) {
		this.playTimeLong = playTimeLong;
	}

	public String getGetState() {
		return getState;
	}

	public void setGetState(String getState) {
		this.getState = getState;
	}

	public Double getGetNumber() {
		return getNumber;
	}

	public void setGetNumber(Double getNumber) {
		this.getNumber = getNumber;
	}
}